import request from '../utils/request'

export default {
    //发送验证码
    sendMsgApi(data) {
        return request({
            method: 'POST',
            url: '/user/sendmsg',
            data
        })
    },
    //用户登录
    loginApi(data) {
        return request({
            method: "POST",
            url: '/user/login',
            data
        })
    },
    //用户退出
    loginoutApi() {
        return request({
            method: "POST",
            url: '/user/loginout'
        })
    },
    //获取用户信息
    getUserInformation() {
        return request({
            method: 'get',
            url: '/user/getinfo'
        })
    },
    //获取用户展示信息
    getUseStatus() {
        return request({
            method: 'GET',
            url: '/user/display'
        })
    }

}